import server from "@/utils/request";
// 用户统计
//根据id获取学生
export function  getstudent_byid(payload = {}){
    return server.get('/school/student/getStudentById', { params: payload } )
}
//分页获取学生
export function  getstudent_bypage(payload: {cp:Number,ps:Number}){
    // console.log('分页');
    
    // console.log(payload);
    
    return server.get(`/school/student/getStudentByPage?cp=${payload.cp}&ps=${payload.ps}`)
}
//根据id删除学生
export function  delete_student(id:any){
    return server.delete('/school/student/deleteStudent' + id)
}

//分页获取老师
export function  getteacher_bypage(payload = {cp:Number,ps:Number}){
    return server.get(`/school/teacher/getTeacherByPage?cp=${payload.cp}&ps=${payload.ps}`)
}
//根据id删除老师
export function  delete_teacher(id:any){
    return server.delete('/school/teacher/deleteTeacher' + id)
}
//分页获取家长
export function  getparents_bypage(payload = {cp:Number,ps:Number}){
    return server.get(`/school/student/getStudentByPage?cp=${payload.cp}&ps=${payload.ps}`)
}
//分页获取学校
export function  getschool_bypage(payload = {cp:Number,ps:Number}){
    return server.get(`/school/school/getSchoolByPage?cp=${payload.cp}&ps=${payload.ps}`)
}